import java.util.Scanner;

public class L8 {
    public static void main(String[]args){


        Scanner in = new Scanner(System.in);
        System.out.println("输入第一个数：");
        int a = in.nextInt();
        System.out.println("输入第二个数：");
        int b = in.nextInt();
        System.out.println("输入第三个数：");
        int c = in.nextInt();
        if(a>b&&b>c){
            System.out.println("输出:"+a+""+b+""+c);
        }if(a>c&&c>b){
            System.out.println("输出："+a+""+c+""+b);

        }if(b>a&&a>c){
            System.out.println("输出："+b+""+a+""+c);
        }if(b>c&&c>a){
            System.out.println("输出："+b+""+c+""+a);
        }if(c>a&&a>b){
            System.out.println("输出:" +c+""+a+""+b);
        }if(c>b&&b>a){
            System.out.println("输出："+c+""+b+""+a);

        }else{
            System.out.println("输入错误，请重新输入。");
        }
    }
}


